package com.longfa.ojbackendserviceclient.service;

import com.longfa.ojbackendmodel.model.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: JudgeFeignClient
 * Package: com.fa.oj.judge
 * Description: 判题服务接口
 *
 * @Author:
 * @Create: 2024/4/23 - 18:44
 * @Version: v1.0
 */
@FeignClient(name = "oj-backend-judge-service", path = "/api/judge/inner")
public interface JudgeFeignClient {

    @PostMapping("/do")
    QuestionSubmit doJudge(@RequestParam("questionSubmitId") long questionSubmitId);
}
